home *** CD-ROM | disk | FTP | other *** search
- Path: wabbit.cc.uow.edu.au!not-for-mail
- From: tp86@wumpus.cc.uow.edu.au (PAOPENG THEERADECH)
- Newsgroups: comp.lang.c
- Subject: What is '?' in C mean....?????
- Date: 5 Jan 1996 02:38:48 +1100
- Organization: University of Wollongong, NSW, Australia.
- Message-ID: <4cgsa8$bm2@wumpus.cc.uow.edu.au>
- NNTP-Posting-Host: wumpus.cc.uow.edu.au
- X-Newsreader: NN version 6.5.0 #5
-
- Hello to all.
- I got something here to ask you guys. I saw some symbol like "?" be
- used in some codes. I don't understand what does it mean. I tried to read some
- text books but I still cannot find the detail about "?". The codes that I saw
- are;
- max = x>y ? x:y;
-
- and
-
- printf("%d", x>y ? x:y);
-
- Could anyone here explain to me what is "?" means and what the purpose of using
- it???.
- I really appreciate that if you reply via e-mail rather than post
- follow up in this newsgroups.
-
-
- Thanks in advance and "Have a good day"
-
- --
- John.
-
-